<?php namespace Phpcmf\Controllers;

// Pc二维码
class Pc extends \Phpcmf\Common {

    public function index() {

        $id = (int)\Phpcmf\Service::L('Input')->get('id');
        $p = (int)\Phpcmf\Service::L('Input')->get('p');
        // 获取会员全部配置信息
        $data = [];
        $result = \Phpcmf\Service::M()->db->table('member_setting')->get()->getResultArray();
        if ($result) {
            foreach ($result as $t) {
                $data[$t['name']] = dr_string2array($t['value']);
            }
        }

        $user = [
            'appid'=> $this->weixin['account']['appid'],
            'openid' => $data['oauth']['weixin']['id'],
        ];
        $this->_msg(1, '微信openid',$user);
    }

}
